package com.restaurant.application.shoplist.support;

import com.nebutown.base.ViewSpec;
import com.nebutown.base.data.View;
import com.nebutown.generation.basictype.UID;
import com.nebutown.supporthome.AbstractBase;
import com.restaurant.application.shoplist.ShopList;

import java.util.List;

public class ShopListOutFace implements ShopList {
    private ShopListBase base;

    public ShopListOutFace(ShopListBase base) {
        this.base = base;
    }

    public AbstractBase getBase() {
        return this.base;
    }

    @Override
    public List findAllShopData() {
        return (List) base.call("findAllShopData");
    }
    
    @Override
    public List findAllShop() {
        return (List) base.call("findAllShop");
    }

    @Override
    public int checkMaxId() {
        return (int) base.call("checkMaxId");
    }

    @Override
    public UID findShopByName(String arg0) {
        return (UID) base.call("findShopByName", arg0);
    }
    
    @Override
    public void addShop(UID arg0) {
        base.call("addShop", arg0);
    }

    @Override
    public List findAllShopBO() {
        return (List) base.call("findAllShopBO");
    }
    
    @Override
    public UID getId() {
        return (UID) base.call("getId");
    }

    @Override
    public View getFullView() {
        return (View) base.call("getFullView");
    }

    @Override
    public View getViewLead(ViewSpec arg0) {
        return (View) base.call("getViewLead", arg0);
    }
    
    @Override
    public Class getEffectiveInterface() {
        return (Class) base.call("getEffectiveInterface");
    }
}
